package com.chengxiaoxiao.service.impl;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.dao.OrderDao;
import com.chengxiaoxiao.dao.impl.OrderDaoImpl;
import com.chengxiaoxiao.domain.Order;
import com.chengxiaoxiao.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {

    OrderDao dao = new OrderDaoImpl();
    @Override
    public void add(Order order) {
dao.add(order);
    }

    @Override
    public void update(Order order) {
        dao.update(order);
    }

    @Override
    public void delete(long id) {
        dao.delete(id);
    }

    @Override
    public List get() {
        return dao.get();
    }

    @Override
    public Order getbyId(long id) {
        return dao.getbyId(id);
    }

    @Override
    public Page getListPage(String num) {
        return null;
    }
}
